using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using BA.DAL;

namespace BlazeApps.Library.Messaging
{
    public class SentItems : Base
    {
        private BA.DAL.DBUtility DAL = new BA.DAL.DBUtility();
        private Procedures Procs = new Procedures();

        public DataTable GetSentItemsList(Guid UserID)
        {
            DAL.CreateDBObjects(ConnectionString, Provider);

            DAL.AddParameter("@userid", UserID);

            return DAL.GetDataTable(Procs.ListPrivateMessageSentItems.ToString().Trim(), CommandType.Text, ConnectionState.Open);
        }
    }
}
